package com.gb.demand.common.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 购物车表
 * </p>
 *
 * @author shenzhiwen
 * @since 2020-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wemall_goodscart")
@ApiModel(value="Goodscart对象", description="购物车表")
public class Goodscart extends Model<Goodscart> implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("addTime")
    private Date addTime;

    @TableField("deleteStatus")
    private Boolean deleteStatus;

    @ApiModelProperty(value = "数量")
    private Integer count;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "规格")
    private String specInfo;

    @ApiModelProperty(value = "商品")
    private Long goodsId;

    @ApiModelProperty(value = "订单")
    private Long ofId;

    @ApiModelProperty(value = "购物车类型")
    private String cartType;

    @ApiModelProperty(value = "storecart的id")
    private Long scId;

    @ApiModelProperty(value = "订单中的这个goodscart是否开过票")
    private Boolean hasbilling;

    @ApiModelProperty(value = "南网对接：申购单明细编号")
    @TableField("applyItemId")
    private String applyItemId;


}
